package com.struct{
	/**
	 * 创建者：薛恒杰
	 * 工程名称：Marbles
	 * 创建时间：Jul 30, 2012 12:01:52 PM
	 * 类说明：Container.as, 容器类。
	 * 保函底图，士兵等层级
	 */
	import com.collection.ActionCollection;
	import com.event.SoldierEvent;
	import com.role.Soldier;
	import com.role.Soldier2;
	
	import flash.display.Sprite;
	import flash.events.TimerEvent;
	import flash.utils.Timer;
	
	public class Container extends Sprite{
		private var mapLayer:Map_Layer;//底图层实例
//		private var soldierLayer:Soldier_Layer;//士兵层 
		private var _soldierLayer:Soldier_Layer_;//士兵层
		public function Container(){
			super();
			mapLayer = new Map_Layer();
			_soldierLayer = new Soldier_Layer_();
			addChild(mapLayer);
			addChild(_soldierLayer);
			init();
		}
		public function init():void{
//<<<<<<< .mine
			for(var i:uint = 0; i < 5; ++i){
				var quality:Number = Math.random() * 10 + 5
//				var s:Soldier = new Soldier(100, 10, 2, quality, quality, Math.random() * 1 + 1, -Math.random() * .1 - .005, -.8);
				var s:Soldier2 = new Soldier2(100, 10, 2, quality, 0.002, 10);
				s.x = Main.c.width * Math.random();
				s.y = Main.c.height * Math.random();
//=======
//			for(var i:uint = 0; i < 8; ++i){
//				var quality:Number = Math.random() * 10 + 5;
//				var s:Soldier = new Soldier(100, 10, 2, quality, 10, Math.random() * 2 + 2, -Math.random() * .1 - .005, -.8);
//				s.x = 800 * Math.random();
//				s.y = 600 * Math.random();
//>>>>>>> .r40
				_soldierLayer.addSoldier(s);
			}
			_soldierLayer.nextSoldier();
		}
		public function clear():void{
//			_soldierLayer.clear();
		}
	}
}